<%@ page import="com.cat.controller.StudentServlet" %>
<%@ page import="com.cat.pojo.Student" %>
<%@ page import="com.cat.service.inter.StudentService" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: Misterchaos
  Date: 2019/3/23
  Time: 0:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>
<head>
    <title>加入cat</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet"
          href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
</head>
<div class="container">
    <div class="jumbotron">
        <h1 align="center">加入C.A.T</h1>
        <p>请填写您的报名信息</p>
        <a href="StudentServlet?method=index" align="center" methods="post">
            <button type="button" class="btn btn-primary">返回主页</button>
        </a>
        <%
            Map<String, String> msg = (Map<String, String>) request.getAttribute("message");
            if (msg != null) {
                out.print("<hr><p>提示信息：您的输入不合法，请重新填写注册信息</p><p>\n");
                for (String key : msg.keySet()) {
                    out.print(msg.get(key)+"<br/>");
                }
                out.print("</p>");
            }
        %>
    </div>
    <div class="jumbotron" style="width:auto">
        <form action="StudentServlet" method="post" enctype="multipart/form-data">
            请点击上传头像：<input type="file" class="form-control" name="portrait">
            <br/>

            <div class="color-input-field" style="width: auto">
                <input type="text" class="form-control" name="studentId" placeholder="请输入学号"/> <br/>
                <input type="text" class="form-control" name="studentName" placeholder="请输入姓名"/><br/>
                <input type="text" class="form-control" name="phoneNumber" placeholder="请输入手机号"/><br/>
                <input type="text" class="form-control" name="password" placeholder="请输入密码"/><br/>
                性别:
                <input type="radio" name="gender" checked="checked" value="男"/>男
                <input type="radio" name="gender" value="女"/>女<br/><br/>
                <input type="text" class="form-control" name="major" placeholder="请输入所在专业"/><br/>
                <input type="text" class="form-control" name="majorClass" placeholder="请输入班级"/><br/>
                方向:
                <input type="radio" name="position" value="前端" checked="checked"/>前端
                <input type="radio" name="position" value="后台"/>后台<br/><br/>
                <input type="text" class="form-control" name="introduction" placeholder="请写一段话介绍自己"/><br/>
            </div>
            </br>
            <a href="StudentServlet">
                <button name="method" class="btn btn-primary" value="register.do">提交我的报名信息</button>
            </a>
        </form>
    </div>
</div>
</body>
</html>
